package com.skeyedu.book.entity;

public class Book {
    private Integer item_id;
    private String title;
    private String author;
    private String quality;
    private String cover_img;
    private Float price;
    private Integer seller_id;
    private Integer status;//状态，1表示出售中，2表示已被下单，3表示已被卖出，4表示已下架



    public Book() {
    }

    public Book(Integer item_id, String title, String author, String quality, String cover_img, Float price, Integer seller_id, Integer status) {
        this.item_id = item_id;
        this.title = title;
        this.author = author;
        this.quality = quality;
        this.cover_img = cover_img;
        this.price = price;
        this.seller_id = seller_id;
        this.status = status;
    }

    public Integer getItem_id() {
        return item_id;
    }

    public void setItem_id(Integer item_id) {
        this.item_id = item_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public Integer getSeller_id() {
        return seller_id;
    }

    public void setSeller_id(Integer seller_id) {
        this.seller_id = seller_id;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public String getCover_img() {
        return cover_img;
    }

    public void setCover_img(String cover_img) {
        this.cover_img = cover_img;
    }

    @Override
    public String toString() {
        return "Book{" +
                "item_id=" + item_id +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", quality='" + quality + '\'' +
                ", cover_img='" + cover_img + '\'' +
                ", price=" + price +
                ", seller_id=" + seller_id +
                ", status=" + status +
                '}';
    }
}
